const mongoose = require('mongoose')

const schema = mongoose.Schema({
    name: String,
    // 一个广告位里有多个广告，每个广告包含一个封面图和一个跳转链接
    items: [{
        pic: String,
        url: String
    }]
})

module.exports = mongoose.model('Ad', schema)